package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaSensitiveDictDto;
import com.ysd.lis.dto.sta.StaSensitiveDictParam;
import com.ysd.lis.entity.sta.StaSensitiveDict;
import com.ysd.lis.service.sta.StaSensitiveDictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "标准功能")
@RestController
@RequestMapping("/lis/sta/staSensitiveDict")
public class StaSensitiveDictController extends BaseController {

    @Autowired
    StaSensitiveDictService staSensitiveDictService;

    @ApiOperation("不分页查询")
    @GetMapping("/findStaSensitiveDictList")
    public Result findStaSensitiveDictList(StaSensitiveDictParam param){
        return staSensitiveDictService.findStaSensitiveDictList(param);
    }

    @ApiOperation("分页查询")
    @GetMapping("/findStaSensitiveDictPageList")
    public Result findStaSensitiveDictPageList(StaSensitiveDictParam param){
        return staSensitiveDictService.findStaSensitiveDictPageList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addStaSensitiveDict")
    public Result addStaSensitiveDict(@RequestBody StaSensitiveDict staSensitiveDict){
        return  staSensitiveDictService.addStaSensitiveDict(staSensitiveDict);
    }

    @ApiOperation("修改")
    @PostMapping("/editStaSensitiveDict")
    public Result editStaSensitiveDict(@RequestBody StaSensitiveDict supplier) {
        return staSensitiveDictService.editStaSensitiveDict(supplier);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStaSensitiveDictList")
    public Result batchDeleteStaSensitiveDictList(@RequestBody StaSensitiveDictDto dto){
        return  staSensitiveDictService.batchDeleteStaSensitiveDictList(dto);
    }
}
